package com.gistmap.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.servlet.http.HttpServletRequest;



@Controller
public class MainController
{
	@RequestMapping("login")
	public String login()
	{
		return "login";
	}
	
	@RequestMapping("head")
	public String head()
	{
		return "header";
	}
	
	@RequestMapping("main")
	public String main()
	{
		return "redirect:/article/mainData";
	}

	@RequestMapping("articleLoad")
	public void ueditorController(HttpServletRequest request,Model model)
	{
		String test = request.getParameter("editor1").toString();
		System.out.println(test);
	}

	@RequestMapping("articleSave")
	public String articleSave(HttpServletRequest request)
	{
		System.out.println("**************************************");
		System.out.println(request.getParameter("editorValue"));
		return "main";
	}

}
